<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8">
		<title>菜单管理编辑页面</title>
		<link rel="stylesheet" href="resource/css/layui.css">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="renderer" content="webkit" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="format-detection" content="telephone=no" />
		<link rel="stylesheet" href="css/global.css" media="all">
  		<link rel="stylesheet" href="css/font-awesome/css/font-awesome.min.css">
	</head>
	<body style="overflow: scroll;">
		<form class="layui-form" style="margin:15px;" th:object="${modifyMenu}">
			<input type="hidden" th:field="*{id}">
			<input type="hidden" th:field="*{createUserId}">
			<input type="hidden" th:field="*{deleteFlag}">
			<div class="layui-form-item">
				<label class="layui-form-label">菜单名称</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{menuName}" lay-verify="menuName" lay-verType="tips" name="menuName" placeholder="请输入菜单名称" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">菜单链接</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{menuHref}" lay-verify="menuHref" lay-verType="tips" name="menuHref" placeholder="请输入菜单链接" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">菜单图标</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{menuIcon}" lay-verType="tips" name="menuIcon" placeholder="请输入菜单图标代码" autocomplete="off" class="layui-input">
					<a href="http://www.yeahzan.com/fa/facss.html" target="blank_" style="color: blue ;cursor: pointer;"><u>图标填写内容请参考</u></a>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">父级菜单</label>
				<div class="layui-input-block">
					<select name="parentId" lay-filter="parentId">
				        <option value=""></option>
				        <option th:each="menu : ${menusByCurrentUser}" th:value="${menu.id}" 
				        th:text="${menu.menuName}" th:selected="*{parentId} eq ${menu.id} ? 'selected'">用户管理</option>
				        <!-- <option value="1">菜单管理</option> -->
				    </select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">内容弹出位置</label>
				<div class="layui-input-block">
					<select name="target" lay-filter="target">
				        <option value="myFrameName" th:selected="*{target} eq 'myFrameName' ? 'selected'">默认工作区</option>
				        <option value="blank_" th:selected="*{target} eq 'blank_' ? 'selected'">弹出一个新的网页</option>
				      </select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">菜单位置</label>
				<div class="layui-input-block">
					<select name="postion" lay-filter="postion">
				        <option value="1" th:selected="*{postion} eq '1' ? 'selected'">竖菜单</option>
				        <option value="0" th:selected="*{postion} eq '0' ? 'selected'">横菜单</option>
				      </select>
				</div>
			</div>
			<div class="layui-form-item">
			    <div class="layui-input-block">
			      <button class="layui-btn" lay-submit lay-filter="edit">立即提交</button>
			      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
			    </div>
			</div>
		</form>	
		<script src="resource/layui.js"></script>
		<script src="js/measureMenu_edit.js"></script>
	</body>
</html>